function submitLogin() {
    var username = $("#username").val();
    var password = $("#password").val();
    var name = $("#name").val();
    var mobile = $("#mobile").val();
    var param = {
        name:name,
        mobile:mobile,
        username:username,
        password:password
    };
    $.ajax({
        url: '/user/sign',
        type:"POST",
        dataType: "json",
        contentType: "application/json;charset=utf-8",
        data: JSON.stringify(param),
        success: function (res) {
            console.log(res.success);
            if (res.success) {
                window.location.href="/login.html";
            }else {
                // alert("登录失败");
                alert("success");
                $('.errorMessage').html(res.message)
            }
        }
    });
}